package de.gameduell.framework.gui.animation {
	import flash.events.Event;

	/**
	 * @author daal
	 */
	public class TimelineEvent extends Event {

		public static const LABEL_REACHED:String = "labelReached";
		private var _currentFrame:uint;
		private var _currentLabel:String;

		public function TimelineEvent(type:String, frame:uint, label:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_currentFrame = frame;
			_currentLabel = label;
		}

		public function get currentFrame():uint {
			return _currentFrame;
		}

		public function set currentFrame(frame:uint):void {
			_currentFrame = frame;
		}

		public function get currentLabel():String {
			return _currentLabel;
		}

		public function set currentLabel(label:String):void {
			_currentLabel = label;
		}		
	}
}
